package com.jiantong.work.service;

import com.jiantong.work.dto.ImmunizationRecordDto;
import com.jiantong.work.model.ImmunizationRecord;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by maowenjie on 2017/3/30.
 *
 */
public interface ImmunizationRecordWriteService {
    /**
     * -- 防疫中心-免疫记录  创建新单据
     * @param immunizationRecordDto 单据对象
     * @return Map<String , Object>
     */
    Response<Map<String,Object>> create(ImmunizationRecordDto immunizationRecordDto, Integer toStatus);

    /**
     * -- 防疫中心-免疫记录 更新单据
     * @param immunizationRecordDto 单据对象
     * @return Map<String , Object>
     */
    Response<Map<String,Object>>update(ImmunizationRecordDto immunizationRecordDto,Integer toStatus);

     Boolean update(ImmunizationRecord immunizationRecord);
}
